public class test3 {
    public static void main(String[] args) {
        String string1 = "abc";
        String string2 = new String("abc");
        char[] arr = new char[]{'a','b','c'};
        String string3 = new String(arr);
        System.out.println(string1);
        System.out.println(string2);
        System.out.println(string3);
    }
}